export default {
  path: '/account',
  component: () => import(/* webpackChunkName: 'account' */ '@/views/account'),
  children: [
    {
      path: 'balance',
      component: resolve => require(['@/views/account/balance'], resolve),
      meta: { title: '余额' }
    },
    {
      path: 'platform-ticket',
      component: resolve => require(['@/views/account/platform-ticket'], resolve),
      meta: { title: '优惠劵' }
    },
    {
      path: 'ticket',
      component: resolve => require(['@/views/account/ticket'], resolve),
      meta: { title: '购物券' }
    },
    {
      path: 'score',
      component: resolve => require(['@/views/account/score'], resolve),
      meta: { title: '积分' }
    },
    {
      path: 'card',
      component: resolve => require(['@/views/account/card'], resolve),
      meta: { title: '蜜卡' }
    },
    {
      path: 'store/:type?',
      component: resolve => require(['@/views/account/store'], resolve),
      meta: { title: '云仓' }
    },
    {
      path: 'extract',
      component: resolve => require(['@/views/account/store/pull'], resolve),
      meta: { title: '云仓提货' }
    }
  ]
}
